hostname software package provides utility to set/show the host name or domain name, you can install in your Ubuntu 16.04 LTS (Xenial Xerus) by running the commands given below on the terminal,
$ sudo apt-get update $ sudo apt-get install hostname
hostname is installed in your system.
Make ensure the hostname package were installed using the commands given below,
$ sudo dpkg-query -l | grep hostname *
You will get with hostname package name, version, architecture and description in a table
| Distro | Ubuntu 16 04 lts xenial xerus |
| Section | Administration Utilities |
| Package | hostname |
| Version | 3.16ubuntu2 |
| Description | utility to set/show the host name or domain name |
| Sub Section | admin |